package com.zhuang.chapter08.work01;

public class Student extends BasicInfo {
	private int grade;
	private int classes;
	private String field;

	public Student(int id, String name, String gender, String birthday) {
		super(id, name, gender, birthday);
	}

	public Student(int id, String name, String gender, String birthday, int grade, int classes, String field) {
		super(id, name, gender, birthday);
		this.grade = grade;
		this.classes = classes;
		this.field = field;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public int getClasses() {
		return classes;
	}

	public void setClasses(int classes) {
		this.classes = classes;
	}

	public String getField() {
		return field;
	}

	public void getField(String professional) {
		this.field = field;
	}

	public void show() {
		System.out.println("编号：" + super.getId() + "，姓名：" + super.getName() + "，性别：" + super.getGender() + "，出生日期："
				+ super.getBirthday() + "，高考分数：" + grade + "，专业：" + field + "，班级：" + classes);
	}
}
